home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / btchroom.zip / BTCHROOM.DOC < prev    next >
Text File  |  1990-12-15  |  2KB  |  26 lines

  1. ;                            12/15/90
  2.    A program which remains resident with 512 bytes after creating a
  3. file 'BTCHRLSE.COM' which when run releases 'BTCHROOM's resident
  4. code for use by COMMAND.COM for it's 'BATCH Information Block'.
  5.    When COMMAND.COM executes a batch file it 1) opens the file,
  6. 2) reads a line, 3) closes the file after recording the file's name
  7. and location of the last line read and 4) then executes the line.
  8. This information is kept in RAM in what I will call a 'Batch File
  9. Information' block, part of the DOS memory chain which I will call
  10. a 'Batch File Information Block'.
  11.    When running any batch file COMMAND.COM uses the 1st open memory
  12. block for it's 'Batch File Information Block' if there is no free room
  13. it puts this block at the top of free ram.
  14.    When running a batch file which releases TSR's from memory using
  15. such programs as 'MARK/RELEASE', if this block is at the top of free
  16. ram the release program kills this 'information' block causing
  17. COMMAND.COM to hang when it can't find it's batch file information.
  18.    Running 'BTCHROOM' in your AUTOEXEC.BAT file before the 1st release
  19. point leaves it resident with a size of 512 bytes and creates the file
  20. 'BTCHRLSE.COM'.
  21.    After all the TSR's are loaded, run the new file 'BTCHRLSE', again
  22. from your AUTOEXEC.BAT, which will release 'BTCHROOM' leaving a 512K
  23. 'hole' for COMMAND.COM to use which will not be lost when a batch file
  24. using the 'RELEASE' portion of 'MARK/RELEASE' is run and will erase
  25. itself from the disk.
  26.